package com.acme.chat.newclient;

import com.acme.chat.message.MessageType;

public class Messages {
    public static String getStringFromMessage(ServerMessage message) {
        MessageType type = message.getType();
        String string = null;

        switch (type) {
        case CONNECTED:
            string = "You are connected to the server!";
            break;
        case DISCONNECTED:
            string = "You are disconnected from the server!";
            break;
        default:
            break;
        }
        return string;
    }
}
